package org.example.dormsystem.service.impl;

import org.example.dormsystem.mapper.FloorMapper;
import org.example.dormsystem.pojo.Dormitory;
import org.example.dormsystem.service.FloorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FloorServiceImpl implements FloorService {

    @Autowired
    FloorMapper floorMapper;

    @Override
    public List<Dormitory> findRoomNumberByFloorNumber(String floorNumber) {
        List<Dormitory> list = floorMapper.findRoomNumberByFloorNumber(floorNumber);
        return list;
    }
}
